projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bccaeb0
)
frame: Fix child allocation
author
Timm Bäder
<mail@baedert.org>
Sat, 27 May 2017 15:31:05 +0000
(17:31 +0200)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:13 +0000
(21:27 -0400)
Don't add the parent's allocation from gtk_widget_get_allocation
gtk/gtkframe.c
patch
|
blob
|
history
diff --git
a/gtk/gtkframe.c
b/gtk/gtkframe.c
index 2779900114b281b1fecbd1cb6ed2174d6bb981ea..c2f6cd49ea60a5bdf6f62c721fc21f98871a4de0 100644
(file)
--- a/
gtk/gtkframe.c
+++ b/
gtk/gtkframe.c
@@
-695,8
+695,8
@@
gtk_frame_real_compute_child_allocation (GtkFrame *frame,
else
height = 0;
- child_allocation->x =
allocation.x
;
- child_allocation->y =
allocation.y +
height;
+ child_allocation->x =
0
;
+ child_allocation->y = height;
child_allocation->width = MAX (1, allocation.width);
child_allocation->height = MAX (1, allocation.height - height);
}